<template>


  <el-tooltip class="item" effect="dark" content="Top Center 提示文字" placement="top">
    <template slot="content">
      <div style="width: 400px;font-size: 13px">
        1688规定一件代发采购需要加盟成为供应商的分销商，由于1688接口限制，MinoShipping无法帮您在下单采购时自动加盟建立分销关系，如需使用一件代发下单采购，请根据<span style="color: #4A9FF9;cursor: pointer" @click="jumpProcureHelp">《使用教程》</span>前往1688操作加盟
      </div>
    </template>
    <el-tag
      effect="dark"
      :type="supplierRelation ? 'success' : 'info'"
    >
      <i class="el-icon-warning-outline"></i>
      {{ supplierRelation ? '已加盟' : '未加盟' }}
    </el-tag>
  </el-tooltip>

</template>

<script>
import {jumpProcureHelp} from "@/utils/common";

export default {
  name: "supplierRelationTag",
  methods: {jumpProcureHelp},
  props:{
    supplierRelation:{
      type: Boolean,
      required: true,
      default: false
    }
  }
}
</script>

<style scoped lang="scss">

</style>
